package com.getbyte.plbc;

import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;

/**
 * @author げっしょく
 * @date 2021/8/4
 */
public class Demo2 {
    public static void main(String[] args) throws IOException {
        FileReader fr = new FileReader("stu.txt");
        FileWriter fw = new FileWriter("Day13\\stu.txt");
        int a ;
        char[] chars = new char[1024];
        while ((a = fr.read(chars)) != -1){
            fw.write(chars , 0 , a);
        }
        fw.flush();
        fw.close();
        fr.close();
    }
}
